//
// Copyright (c) 2008-2011, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//

namespace DiscUtils.Udf
{
    using System;

    /// <summary>
    /// Standard Unix-style file system permissions.
    /// </summary>
    [Flags]
    internal enum FilePermissions
    {
        /// <summary>
        /// No permissions.
        /// </summary>
        None = 0,

        /// <summary>
        /// Any user execute permission.
        /// </summary>
        OthersExecute = 0x0001,

        /// <summary>
        /// Any user write permission.
        /// </summary>
        OthersWrite = 0x0002,

        /// <summary>
        /// Any user read permission.
        /// </summary>
        OthersRead = 0x0004,

        /// <summary>
        /// Any user change attributes permission.
        /// </summary>
        OthersChangeAttributes = 0x0008,

        /// <summary>
        /// Any user delete permission.
        /// </summary>
        OthersDelete = 0x0010,

        /// <summary>
        /// Group execute permission.
        /// </summary>
        GroupExecute = 0x0020,

        /// <summary>
        /// Group write permission.
        /// </summary>
        GroupWrite = 0x0040,

        /// <summary>
        /// Group read permission.
        /// </summary>
        GroupRead = 0x0080,

        /// <summary>
        /// Group change attributes permission.
        /// </summary>
        GroupChangeAttributes = 0x0100,

        /// <summary>
        /// Group delete permission.
        /// </summary>
        GroupDelete = 0x0200,

        /// <summary>
        /// Owner execute permission.
        /// </summary>
        OwnerExecute = 0x0400,

        /// <summary>
        /// Owner write permission.
        /// </summary>
        OwnerWrite = 0x0800,

        /// <summary>
        /// Owner read permission.
        /// </summary>
        OwnerRead = 0x1000,

        /// <summary>
        /// Owner change attributes permission.
        /// </summary>
        OwnerChangeAttributes = 0x2000,

        /// <summary>
        /// Owner delete permission.
        /// </summary>
        OwnerDelete = 0x4000,
    }
}
